<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8"/>
    <link rel="icon" type="image/x-icon" th:href="${application.iconPath}"/>
    <div th:include="../templates/aaacommon/basic::html_header"></div>
    <title class="projectName"></title>
</head>
<body>

<div style="margin-left: 100px;margin-top: 100px;">
    <h2>cas 服务端</h2>
    <h2 th:text="${info}">未登录</h2>
    <h2 th:text="${sessionId}">未登录</h2>
</div>

</body>
<input type="hidden" id="sessionId" th:value="${sessionId}" />
<script>
    layui.use(['element', 'form', 'layer', 'web'], function () {
        var element = layui.element;
        var form = layui.form;
        var layer = layui.layer;
        var web = layui.web;

        // 判断用户是否登录
        var sessionId = $("#sessionId").val();
        if(sessionId==null || sessionId.length==0){
            location.href = basePath+"/page/login";
        }
    });
</script>
<div th:include="../templates/aaacommon/basic::html_footer"></div>
</html>